const mongoose = require('mongoose');

var roommateSchema = mongoose.Schema({
   title:String,
   headimg:String,
   sex:String,
   price:Number,
   fabutime:String,
   main:String,
   imglist:String,
   location:String,
   tips:String
});

var roommateModel = mongoose.model('roommates', roommateSchema);

module.exports = roommateModel;